import Layout from "@/layout";
import emptyLayout from "@/layout/emptyRouter.vue";

export default {
    path: "/package",
    meta: {
        title: "套餐管理",
        roles: ["package"],
        icon: "el-icon-folder-opened"
    },
    component: Layout,
    redirect: "/package",
    name: "Package",
    children: [

        {
            path: "tag",
            meta: {
                title: "套餐标签",
                roles: ["package:tag"],
                icon: "el-icon-collection-tag"
            },
            component: () => import("@/views/models/package/tag.vue"),
            name: "Tag"
        },
        {
            path: "skuAttr",
            meta: {
                title: "套餐sku属性",
                roles: ["package:sku:attr"],
                icon: "el-icon-attract"
            },
            component: () => import("@/views/models/package/skuAttr.vue"),
            name: "SkuAttr"
        },
        {
            path: "productBase",
            meta: {
                title: "基础产品管理",
                roles: ["package:product:base"],
                icon: "el-icon-takeaway-box"
            },
            component: () => import("@/views/models/package/productBase.vue"),
            name: "ProductBase"
        },
        {
            path: "list",
            meta: {
                title: "套餐列表",
                roles: ["package:list"],
                icon: "el-icon-document"
            },
            component: () => import("@/views/models/package/list.vue"),
            name: "PackageList"
        },
        {
            path: "add",
            meta: {
                title: "套餐添加",
                roles: ["package:add"],
                icon: "el-icon-document-add"
            },
            component: () => import("@/views/models/package/add.vue"),
            name: "PackageAdd",
            hidden:true
        },
        {
            path: "sku-list",
            meta: {
                title: "sku列表",
                roles: ["package:sku:list"],
                icon: "el-icon-document-checked"
            },
            component: () => import("@/views/models/package/skuList.vue"),
            name: "SkuList"
        },
        // {
        //     path: "code",
        //     meta: {
        //         title: "激活码管理",
        //         roles: ["package:base:code"]
        //     },
        //     component: () => import("@/views/models/package/code.vue"),
        //     name: "Code"
        // }
    ]
};
